/*
 ----------------------------------------------------------------------------------
                           "THE BEER-WARE COPYRIGHT LICENSE"
                                     (Revision 43)
                                      -----------
    Rymek [rymek@rymek.org] wrote this file. As long as You retain this notice and
    this file has been sent directly to You by the author, You can do whatever You
    want with this stuff as long as You don't sell or rent it. If we meet some day,
    and You think this stuff is worth it, You can buy me a beer in return :-)
                                                                 __________
                                                                 Paweł Rymaszewski
  ----------------------------------------------------------------------------------
 */

package constants;

/**
 * Constants containing all message related information
 *
 * @author rymek
 *         User: Rymek
 *         Date: 06.09.11
 *         Time: 22:55
 */
public interface MessageConstants {

    // PeopleSoft message constants
    public static final int MSG_SYNC_MESSAGE = 1;                               // Synchronous message
    public static final int MSG_ASYNC_MESSAGE = 2;                              // Asynchronous message
    public static final int MSG_REQUEST = 1;                                    // Logtype value coresponding to MSG_REQUEST (REQ)
    public static final int MSG_RESPONSE = 3;                                   // Logtype value coresponding to MSG_RESPONSE (RPLY)
    public static final String MSG_ACTIVE_STATUS = "A";                         // Active Message status string
    public static final String MSG_INACTIVE_STATUS = "I";                       // Inactive Message status string

    // Message Transaction types
    public static final String MSG_TRX_INBOUND_SYNCHRONOUS = "IS";              // Inbound Synchronous Transaction
    public static final String MSG_TRX_OUTBOUND_SYNCHRONOUS = "OS";             // Outbound Synchronous Transaction
    public static final String MSG_TRX_INBOUND_ASYNCHRONOUS = "IA";             // Inbound Asynchronous Transaction
    public static final String MSG_TRX_OUTBOUND_ASYNCHRONOUS = "OA";            // Outbound Asynchronous Transaction

    // Message Transaction string types
    public static final String MSG_STR_TRX_IA = "IA - Inbound Asynchronous";    // Inbound Asynchronous Transaction
    public static final String MSG_STR_TRX_OA = "OA - Outbound Asynchronous";   // Outbound Asynchronous Transaction
    public static final String MSG_STR_TRX_IS = "IS - Inbound Synchronous";     // Inbound Synchronous Transaction
    public static final String MSG_STR_TRX_OS = "OS - Outbound Synchronous";    // Outbound Synchronous Transaction
}
